package com.tony.boot.repository;

import com.tony.boot.entity.Book;
import org.hibernate.annotations.Cache;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface BookRepository extends JpaRepository<Book,Integer>{
    Book findByName(String name);
    List<Book> findByNameContaining(String name);
}
